package org.jshand.homework;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/10/1714:36
 */
public class Student {


    // CTRL+D 复制一行   CTRL+Y 删除一行  双击选择一个单词   CTRL+SHIFT+ ←  → 选择单词
    private String name;
    private String gender;
    private double score;


    // public Student(){
    //
    // }
    // public Student(String name,String gender ,double score){
    //     this.name = name;
    //     this.gender = gender;
    //     this.score = score;
    // }


    public Student() {
    }

    public Student(String name, String gender, double score) {
        this.name = name;
        this.gender = gender;
        this.score = score;
    }

    public void introduce(int index ) {
        System.out.printf("序号:%d,姓名 :  %s\t性别 :  %s\t成绩 :  %f\r\n",
                index,
                this.name,
                this.gender,
                this.score

        );
    }
}
